substitutable dependency
A software component may depended on any number of other components. If we are to test this component by itself, we need to be able to replace the other components with a Test Double. There are several ways that we can make something into a substitutable dependency including Dependency Injection, Dependency Lookup and Test-Specific Subclass.
Copyright © 2003-2008 Gerard Meszaros all rights reserved